<?php
require_once 'Zend/Tbs/Auth/Identity/Generic.php';

require_once 'Zend/Tbs/Resource/Facebook.php';

class Zend_Tbs_Auth_Identity_Facebook extends Zend_Tbs_Auth_Identity_Generic
{
	protected $_api;

	public function __construct($token)
	{
		$this->_api = new Zend_Tbs_Resource_Facebook($token);
		$this->_name = 'facebook';
		$this->_id = $this->_api->getId();
	}

	public function getApi()
	{
		return $this->_api;
	}
}
